package com.ld.control.business.region.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 放置设备的区域定义
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-11
 */
@Data
@TableName("region")
@Schema(description = "放置设备的区域定义")
public class RegionModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "区域名称")
    private String name;

    @Schema(description = "区域编号")
    private String code;

    @Schema(description = "背景图")
    private String backgroundImage;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String CODE = "code";

    public static final String BACKGROUND_IMAGE = "background_image";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
